/*
 * @Author: wuchao66_Git 2803670835@qq.com
 * @Date: 2023-02-20 11:03:03
 * @LastEditors: wuchao66_Git 2803670835@qq.com
 * @LastEditTime: 2023-02-25 11:10:12
 * @FilePath: \t154appxg\src\api\user.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "../utils/request";
import requestexcel from "../utils/request-excel";
export function findUserList(currentPage, pageSize, userVO) {
  //和接口中一样为tree没有入参
  return request({
    url: "/user/findUserList",
    method: "post",
    params: {
      currentPage,
      pageSize,
    },
    data: userVO,
  });
}
//文件流打印
/**
 * 导出用户Excel
 * @param userVo
 */
export function exportUserInfo(userVO) {
  return requestexcel({
    url: "/user/export",
    method: "post",
    data: userVO,
    responseType: "blob",
  });
}
//删除头像的方法 deleteImgFile
export function deleteImgFile(file) {
  return requestexcel({
    url: "deleteImgFile",
    method: "post",
    params: {
      file,
    },
  });
}
//登录方法
/**
 * 
 * 
 * @returns 登录
 */
export function login(username,password) {//和接口中一样为tree没有入参
  return request({
    url: '/user/login',
    method: 'post',
    params:{
       username,
       password,
    }
  })
}
